package com.sservice.commonBusiness.mapper;

import com.sservice.commonBusiness.e.PLetter;
import com.sservice.commonBusiness.vo.PLetterVo;

import java.util.List;

public interface PLetterMapper {
    /**
     * 统计信息
     *
     * @param auctionRegister
     * @return
     */
    int count(PLetterVo auctionRegister);


    /**
     * 分页信息
     *
     * @param auctionRegister
     * @return
     */
    List<PLetterVo> query(PLetterVo auctionRegister);


    /**
     * 不关联分页查询
     *
     * @param auctionRegister
     * @return
     */
    List<PLetterVo> queryPlain(PLetterVo auctionRegister);

    /**
     * 包含评论用户信息的消息
     * @param auctionRegister
     * @return
     */
    List<PLetterVo> queryWithFromUser(PLetterVo auctionRegister);

    int deleteByPrimaryKey(Integer id);

    int insert(PLetter record);

    int insertSelective(PLetter record);

    PLetter selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PLetter record);

    int updateByPrimaryKey(PLetter record);
}